package com.mes.cloud.service;

import com.github.pagehelper.PageInfo;
import com.mes.cloud.dto.BmeBcPickmapDTO;
import com.mes.cloud.util.CommPager;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
* bme_bc_pickmap基础表
* @author xhy
* @date 2019/05/09 16:00
*/
public interface BmeBcPickmapService {

    /**
    * 根据条件获取bme_bc_pickmap基础表列表
    *
    * @author xhy
    * @date   2019/05/09 16:00
    * @param  condition
    * @return List<BmeBcPickmapDTO>
    */
    public List<BmeBcPickmapDTO> getBmeBcPickmapList(Map<Object, Object> condition);

    /**
    * 获取bme_bc_pickmap基础表的最大记录数
    *
    * @author xhy
    * @date   2019/05/09 16:00
    * @param  condition
    * @return long
    */
    public long getBmeBcPickmapCount(Map<Object, Object> condition);

    /**
    * 新增bme_bc_pickmap基础表
    *
    * @author xhy
    * @date   2019/05/09 16:00
    * @param  bmeBcPickmapDTO
    * @return long
    */
    public long insertBmeBcPickmap(BmeBcPickmapDTO bmeBcPickmapDTO);

    /**
    * 更新bme_bc_pickmap基础表
    *
    * @author xhy
    * @date   2019/05/09 16:00
    * @param  bmeBcPickmapDTO
    * @return long
    */
    public long updateBmeBcPickmap(BmeBcPickmapDTO bmeBcPickmapDTO);

    /**
    * 删除bme_bc_pickmap基础表
    *
    * @author xhy
    * @date   2019/05/09 16:00
    * @param  id
    * @return long
    */
    public long delBmeBcPickmapById(String id);

    /**
    * 根据bme_bc_pickmap基础表标识获取bme_bc_pickmap基础表
    *
    * @author xhy
    * @date   2019/05/09 16:00
    * @param  id
    * @return long
    */
    public BmeBcPickmapDTO getBmeBcPickmapById(String id);

    /**
     * 分页
     * @param map
     * @return
     */
    CommPager<BmeBcPickmapDTO> findPageList(Map<Object, Object> map);

    /**
     * 批量删除
     *
     * @param map
     * @return
     */
    Long batchDelete(Map<Object, Object> map) throws  Exception;
    long enable(Map<Object, Object> map) throws  Exception;
    /**
     * 导出
     * @param file
     * @return
     */
    int importExcel(MultipartFile file) throws Exception;

    /**
     * 导出
     * @param map
     * @param response
     */
    void exportFile(Map<Object, Object> map, HttpServletResponse response) throws Exception;

    /**
     * 启用禁用 批量
     *
     * @param map
     * @return
     * @throws Exception
     */
    Long batchEnable(Map<Object, Object> map) throws Exception;

    public List<BmeBcPickmapDTO>  findListByCode(Map<Object, Object> map) throws Exception;
}
